// 自动生成模板LsOrder
package orders

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// lsOrder表 结构体  LsOrder
type LsOrder struct {
	global.GVA_MODEL
	OrderNumber    string   `json:"orderNumber" form:"orderNumber" gorm:"column:order_number;comment:订单编号;size:50;"`                  //订单编号
	GoodName       *string  `json:"goodName" form:"goodName" gorm:"column:good_name;comment:商品名称;size:30;" binding:"required"`        //商品名称
	GoodImg        *string  `json:"goodImg" form:"goodImg" gorm:"column:good_img;comment:商品图片;size:100;" binding:"required"`          //商品图片
	GoodPrice      *float64 `json:"goodPrice" form:"goodPrice" gorm:"column:good_price;comment:商品价格;size:10;" binding:"required"`     //商品价格
	GoodNum        *int     `json:"goodNum" form:"goodNum" gorm:"column:good_num;comment:商品数量;size:10;" binding:"required"`           //商品数量
	GetPeople      *string  `json:"getPeople" form:"getPeople" gorm:"column:get_people;comment:收货人;size:30;" binding:"required"`      //收货人
	GetAddress     *string  `json:"getAddress" form:"getAddress" gorm:"column:get_address;comment:收货地址;size:100;" binding:"required"` //收货地址
	GetTel         *string  `json:"getTel" form:"getTel" gorm:"column:get_tel;comment:收货手机号;size:11;" binding:"required"`             //收货手机号
	TotalPrice     *float64 `json:"totalPrice" form:"totalPrice" gorm:"column:total_price;comment:总价;size:10;"`                       //总价
	ShippingFee    *float64 `json:"shippingFee" form:"shippingFee" gorm:"column:shipping_fee;comment:运费;size:10;"`                    //运费
	OrderSataus    string   `json:"orderSataus" form:"orderSataus" gorm:"column:order_sataus;comment:订单状态;size:20;"`                  //订单状态
	DeliveryStatus *string  `json:"deliveryStatus" form:"deliveryStatus" gorm:"column:delivery_status;comment:配送状态;size:20;"`         //配送状态
	PayType        *string  `json:"payType" form:"payType" gorm:"column:pay_type;comment:支付方式;size:20;"`                              //支付方式
	PayStatus      *string  `json:"payStatus" form:"payStatus" gorm:"column:pay_status;comment:支付状态;size:20;"`                        //支付状态
	CreatedBy      uint     `gorm:"column:created_by;comment:创建者"`
	UpdatedBy      uint     `gorm:"column:updated_by;comment:更新者"`
	DeletedBy      uint     `gorm:"column:deleted_by;comment:删除者"`
}

// TableName lsOrder表 LsOrder自定义表名 ls_order
func (LsOrder) TableName() string {
	return "ls_order"
}
